<form id="<?php echo $uniqid;?>" method="post" style="padding: 8px;">
    <table border="0" width="100%" cellspacing="1" cellpadding="5" class="formtable">
        <tr bgcolor="#FFFFFF">

            <td class="tlabel" >当前储备金：</td>
            <td><input type="number" disabled class="forminput inputstyle validatebox-text textbox-prompt easyui-validatebox"
                       placeholder=""  v-model="params.curr_money">
            </td>
        </tr>
        <tr bgcolor="#FFFFFF">
            <td class="tlabel" >转入返利金：</td>
            <td><input type="number" class="forminput inputstyle validatebox-text textbox-prompt easyui-validatebox"
                       placeholder="负数为扣除.." v-model="params.money">
            </td>
        </tr>
<!--        <tr bgcolor="#FFFFFF">-->
<!--            <td class="tlabel">备注：</td>-->
<!--            <td><input type="text" style="width: 400px;"-->
<!--                                   class="forminput inputstyle validatebox-text textbox-prompt easyui-validatebox"-->
<!--                                   placeholder="请输入备注.." required="true" v-model="params.remark">-->
<!--            </td>-->
<!--        </tr>-->
    </table>
</form>

<script>
    var rechargeVm = new Vue({
        el: '#<?php echo $uniqid;?>',
        data: {
            frompage:'<?php echo addslashes($frompage);?>',
            params: {
                curr_money: '<?php echo addslashes($curr_money);?>',
                money: ''
            },
        },
        methods: {
            submit: function () {
                showLoading('#<?php echo $uniqid;?>');
                $.post('/admin/orderbbonus/recharge', rechargeVm.params, function (data) {
                    hideLoading();
                    if (data.ret === 0) {
                        $.messager.show({
                            title: '提示',
                            msg: data.msg,
                            timeout: 3000,
                            showType: 'slide'
                        });
                        $('#<?php echo $uniqid;?>').form('clear');
                        $("#membereditdlg").dialog('close');
                        $("#member").datagrid('reload');
                    } else {
                        $.messager.alert('提示', data.msg, 'warning');
                    }
                }, 'json');
            }
        }
    });
    $(function () {
        $('#memberrechargesubmit').click(function (data) {
            rechargeVm.submit();
        });
    });
</script>
